﻿<UserControl x:Class="AttentenceCheckSystem.CalenderDay"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:AttentenceCheckSystem"
             mc:Ignorable="d" 
             d:DesignHeight="64" d:DesignWidth="64">
    <Grid>
        <Grid.ContextMenu>
            <ContextMenu>
                <MenuItem Header="设置为休息日" Name="setHoliday" Click="setHoliday_Click" />
                <MenuItem Header="设置为工作日" Name="cancelHoliday" Click="cancelHoliday_Click" />
            </ContextMenu>
        </Grid.ContextMenu>
        <Rectangle Name="Background" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RadiusX="5" RadiusY="5" Stroke="LightGray" StrokeThickness="2" Margin="2" Fill="White" />
        <StackPanel Orientation="Horizontal">
            <TextBlock Name="DayText" Text="30"  FontWeight="Bold" FontSize="25" Margin="4"/>
            <TextBlock Text="/" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold" FontSize="25" Margin="-10"/>
            <TextBlock Name="MonthText" Margin="3" Text="17" VerticalAlignment="Bottom" FontWeight="Bold" FontSize="15"/>
        </StackPanel>
    </Grid>
</UserControl>
